package com.pactera.mavenweb.service;

import java.util.List;

import com.pactera.mavenweb.dto.Page;
import com.pactera.mavenweb.entity.Book;

/**
 * BookService
 * @author SteveXIE
 *
 */
public interface BookService {
	/**
	 * 批量保存
	 * @param BookDetails
	 * @return
	 */
	public int saveBooks(List<Book> Books);
	
	public int getAmountForAllBook();
	
	public Book getBook(int id);
	
	public Book getBookByName(String Bookname);
	
	public List<Book> getAllBook();
	
	public List<Book> getAllBookByPageOrder(Page page);
	
	public void addBook(Book Book);
		
	public boolean delBook(int id);
	
	public void updateBook(Book book);
}